package com.classroom.Firstclass;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-03-08
 * Time：10:49
 */
public class First {
    public static void main1(String[] args) {
        System.out.print("请输入你的分数：");
        Scanner s=new Scanner(System.in);
        int score =s.nextInt();
        if (score<60) {
            System.out.println(score+"分，很遗憾，未及格！");

        } else if (score>=60 && score<70){
            System.out.printf(score+"分，恭喜你及格了！");
        } else if (score>=70 && score <80) {
            System.out.println(score+"分，恭喜你良好了！");
        } else if (score>=80 && score <=100) {
            System.out.println(score+"分，恭喜你优秀了！");
        }
    }
}


class two {
    public static void main2(String[] args) {
        System.out.print("请输入两个数字：");
        Scanner s = new Scanner(System.in);
        int a=s.nextInt();
        int b=s.nextInt();
        int max=a>b?a:b;
        System.out.println("最大值为："+max);
    }
    
}

class three {
    public static int func(int year) {
        if ((year % 4==0 && year %100 != 0) || (year %400 ==0)) {
            return 1;
        }
        return 0;
    }

    public static void main(String[] args) {
        System.out.print("请输入你的年份:");
        Scanner s = new Scanner(System.in);
        int a=s.nextInt();
        int ret =func(a);
        if (ret==1) {
            System.out.println(a+"是闰年！");
        } else {
            System.out.println(a+"不是闰年！");
        }
    }
}

 class four {
    public static void main1(String[] args) {
        System.out.print("请输入你的分数：");
        Scanner s=new Scanner(System.in);
        int score =s.nextInt();
        if (score<60) {
            System.out.println(score+"分，很遗憾，未及格！");
        }
         else {
                System.out.println(score+"分,已及格！");
            }

    }
}